/**
 * @file
 * @auth jinguangguo
 * @date 2017/1/23
 */

import ajax from '../../../grsc-base/util/ajax';

export default {


    /**
     * 用户是否邮箱注册
     * @param param
     * @returns {*}
     */
    isUserEmailRegisted(param = {}) {
        return ajax.get('/exchangeApi/user/email-register-valid', {
            data: param
        });
    },

    /**
     * 用户邮箱注册
     * @param param
     * @param header
     * @returns {*}
     */
    emailRegister(param = {}, header = {}) {
        return ajax.post('/exchangeApi/user/email-register', {
            data: param,
            header: header
        });
    },


    /**
     * 预注册
     * */
    preRegister(param = {}, header = {}) {
        return ajax.post('/exchangeApi/user/email-pre-register', {
            data: param,
            header: header
        })
    },
    //手机号注册
    phoneAccount(data, header) {
        return ajax.post('/exchangeApi/user/phone-register', {
            data: data,
            header: header
        })
    }

};